.class public Lcom/waiqin365/lightapp/syorder/b/a/g;
.super Lcom/waiqin365/lightapp/syorder/b/c;


# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/waiqin365/lightapp/syorder/d/a;Ljava/lang/String;Ljava/lang/String;)V
    .locals 8

    const/16 v0, 0x3f0

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/syorder/b/c;-><init>(I)V

    const-string/jumbo v0, "/app/suyanorder/client/v1/savrOrder.action"

    iput-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->e:Ljava/util/HashMap;

    const-string/jumbo v1, "Content-Type"

    const-string/jumbo v2, "application/x-www-form-urlencoded"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->e:Ljava/util/HashMap;

    const-string/jumbo v1, "auth-code"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.modify_time_str"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->N:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.is_chg_amount"

    invoke-virtual {p2}, Lcom/waiqin365/lightapp/syorder/d/a;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.cm_id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->h:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.order_amount"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v4, p2, Lcom/waiqin365/lightapp/syorder/d/a;->j:D

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.visit_implement_id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.pictures"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->o:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.delivery_date"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->x:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.remark"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->v:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.is_open_bill"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->y:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.open_bill_cm_id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->z:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.business_type_source_code"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->B:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.business_type_name"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->C:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.pay_type"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->F:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.pay_type_source_code"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->G:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.zycb_source_code"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->H:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.zycb_name"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->I:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.is_jj"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->J:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.is_ps"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->K:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.location_type"

    invoke-virtual {v0, v1, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.locationStr"

    iget-object v2, p2, Lcom/waiqin365/lightapp/syorder/d/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Lorg/json/JSONArray;

    invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V

    const/4 v0, 0x0

    move v1, v0

    :goto_1
    iget-object v0, p2, Lcom/waiqin365/lightapp/syorder/d/a;->M:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    iget-object v0, p2, Lcom/waiqin365/lightapp/syorder/d/a;->M:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/d/b;

    :try_start_1
    const-string/jumbo v4, "id"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->v:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "name"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->w:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "init_price"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->D:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "price"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->i:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "hs_price"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->h:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "order_count"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->j:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "order_amount"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->k:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "actual_amount"

    iget-wide v6, v0, Lcom/waiqin365/lightapp/syorder/d/b;->l:D

    invoke-virtual {v3, v4, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    const-string/jumbo v4, "unit"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->J:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "unit_source_code"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->g:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "discount_rate"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->n:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "discount_amount"

    iget-object v5, v0, Lcom/waiqin365/lightapp/syorder/d/b;->o:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "storehouse_source_code"

    iget-object v5, p2, Lcom/waiqin365/lightapp/syorder/d/a;->D:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "storehouse_name"

    iget-object v5, p2, Lcom/waiqin365/lightapp/syorder/d/a;->E:Ljava/lang/String;

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "remark"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/d/b;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v4, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    :goto_2
    invoke-virtual {v2, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.products"

    invoke-virtual {v2}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.token"

    invoke-virtual {v0, v1, p4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void

    :catch_1
    move-exception v0

    goto/16 :goto_0
.end method
